package vmcs.main;

//Copyright 1997 ISS.
//The contents contained in this document may not be reproduced in any
//form or by any means, without the written permission of ISS, other
//than for the purpose for which it has been supplied.
//
//History
//Author: Olivo Miotto
//
//Modified
//6/9/2001, moidified according to the new Java design
//

import java.io.File;

import vmcs.controller.MainController;
import vmcs.utility.VMCSException;

public class Vmcs {

 public static Vmcs		        vmcs;
 public static MainController	mcontrl;
 public static String                propName;

 private Vmcs () {
 }

 public void start () {
   MainController    mcontrl = new MainController();
   try {
     mcontrl.start();
   } catch (VMCSException e){
     System.out.println("Vmcs.start: Error in system initialization: " + e.getMessage());
     System.exit(0);
   }
 }

 public static void main (String args[]) {
     System.setProperty("user.home", new File("./").getAbsolutePath());
     /****
     if(args.length < 1) {
       System.out.println("System Argument is not right");
       System.exit(0);
     }

     String propn = args[0];
     ***/
     vmcs = new Vmcs();
     //vmcs.propName = propn;
     vmcs.start();
 }
}

